package com.qlk.test.odcinterface.rest;

import org.junit.Test;
import org.springframework.util.Assert;

import com.qlk.common.client.AbstractClient;
import com.qlk.test.odcinterface.rest.dto.PmsProductPromotionChannel;
import com.qlk.test.odcinterface.rest.request.PmsProductPromotionChannelRequest;
import com.qlk.test.odcinterface.rest.response.PmsProductPromotionChannelResponse;
import com.qlk.test.odcinterface.rest.Urls;

/**
 * PmsProductPromotionChannelResource单元测试
 * 
 * @author zhaoyanan
 * @version 2016-4-14 13:22:59
 * 
 */
public class PmsProductPromotionChannelResourceTestCase extends AbstractClient {
    
    @Test
    public void testGetPmsProductPromotionChannel() {
        String url= Urls.API_DOMAIN + "/pmsProductPromotionChannel/getPmsProductPromotionChannel";

        PmsProductPromotionChannelRequest request = new PmsProductPromotionChannelRequest();
//        request.setId(1l);
        PmsProductPromotionChannelResponse response = super.getRestTemplate().postForObject(url, request, PmsProductPromotionChannelResponse.class);
        Assert.notNull(response);
        PmsProductPromotionChannel pmsProductPromotionChannel = super.getResult(response);
        Assert.notNull(pmsProductPromotionChannel);
    }
}
